package com.nlp.visualization.service.news;

import com.nlp.visualization.core.seg.SegmentType;
import com.nlp.visualization.core.seg.filter.SegFilter;

import java.io.File;
import java.io.IOException;

/**
 * @author LXM
 * @Title: INewsService
 * @Description: 新闻的服务接口类
 * @date 2018/3/5上午11:03
 */
public interface INewsService {

    /**
     * @param jsonFile    要执行分词的json的文件
     * @param textFileDir 要保存分词结果的txt文件夹
     * @param method      分词的方法
     * @param filter      分词过滤器
     * @throws IOException
     */
    void newsSeg2Text(File jsonFile, File textFileDir, SegmentType method, SegFilter filter) throws Exception;


    File newsSeg2Text(String text, File saveDir, SegFilter filter) throws Exception;
}
